Object.defineProperty(exports, "__esModule", {
    value: !0
});

var e = Object.assign || function(e) {
    for (var r = 1; r < arguments.length; r++) {
        var t = arguments[r];
        for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
    }
    return e;
};

exports.request = function(r) {
    return new Promise(function(t, n) {
        wx.request(e({}, r, {
            success: function(e) {
                t(e);
            },
            fail: function(e) {
                n(e);
            }
        }));
    });
};